{% extends "base.html" %}

{% block content %}
<h1>Изменение пароля</h1>

<form method="POST">
    {% csrf_token %}
    <div class="form-error">{{ form.non_field_errors }}</div>
    {% for f in form %}
    <p>
        <label class="form-label" for="{{ f.id_for_label }}">
            {{ f.label }}:
        </label>
        {{ f }}
    </p>
    <div class="form-error">{{ f.errors }}</div>
    {% endfor %}
    <p>
        <button type="submit">
            Сменить пароль
        </button>
    </p>
</form>
{% endblock %}